export const equipmentOption = function () {
  return {
    refreshBtn: true,
    columnBtn: true,
    border: true,
    stripe: true,
    index: true,
    editBtn: true,
    delBtn: true,
    align: 'center',
    addBtn: !['view'].includes(this.type),
    menu: !['view'].includes(this.type),
    labelWidth: 120,
    indexLabel: '序号',
    column: [
      {
        label: '设备名称/型号',
        prop: 'equipmentName',
        rules: [
          {
            required: true,
            message: '请输入设备名称/型号',
            trigger: 'blur'
          }
        ],
        maxlength: 50,
        minWidth: 120,
        slot: this.slotFlg
      },
      {
        label: '品牌/厂家',
        prop: 'brand',
        maxlength: 50,
        minWidth: 120,
        slot: this.slotFlg
      },
      {
        label: '数量',
        prop: 'quantity',
        type: 'number',
        maxlength: 50,
        minWidth: 80,
        slot: this.slotFlg
      },
      {
        label: '投入使用时间',
        prop: 'beginDate',
        type: 'date',
        maxlength: 50,
        minWidth: 120,
        slot: this.slotFlg
      },
      {
        label: '设备优势说明',
        prop: 'advantageDescription',
        type: 'textarea',
        maxlength: 500,
        minRows: 6,
        maxRows: 8,
        span: 24,
        minWidth: 150,
        slot: this.slotFlg
      }
    ]
  }
}
export const logisticsOption = function () {
  return {
    refreshBtn: true,
    columnBtn: true,
    border: true,
    stripe: true,
    index: true,
    editBtn: true,
    delBtn: true,
    align:'center',
    addBtn: !['view'].includes(this.type),
    menu: !['view'].includes(this.type),
    labelWidth: 150,
    indexLabel: '序号',
    column: [
      {
        label: '车辆类型',
        prop: 'vehicleType',
        rules: [
          {
            required: true,
            message: '请输入车辆类型',
            trigger: 'blur'
          }
        ],
        maxlength: 50,
        slot: this.slotFlg
      },
      {
        label: '数量',
        prop: 'quantity',
        type: 'number',
        maxlength: 50,
        slot: this.slotFlg
      },
      {
        label: '车辆型号/物流名称',
        prop: 'logisticsName',
        maxlength: 50,
        slot: this.slotFlg
      }
    ]
  }
}
